package gw;

import java.awt.Dimension;
import java.awt.HeadlessException;
import javax.swing.JFrame;

/**
 *
 * @author jcastillo
 */
public abstract class AbstractVentana extends JFrame{

    public AbstractVentana(String titulo) throws HeadlessException {
        super(titulo);
        setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
    }

    @Override
    public void setVisible(boolean bln) {
        setSize(new Dimension(1024, 700));
        setLocationRelativeTo(null);
        super.setVisible(bln);
    }

}
